import { cloudStorage } from "common/jscloud";
const collection = cloudStorage('CLOUD-TABLE-MANAGER')

// all collection configs, about clumnFilds input action etc.
export default async function(){
  const res = await collection.doc.list()
  return res.data
}

export function setGlobaleCollection(cloudCollection){
  // 全局变量，所有云端集合的配置文件内存中(所有columns)
  window.globalCloudCollection = cloudCollection   
}